//首页二级路由
import Main from "../views/Main/index.vue"
import House from "../views/House.vue"
import live from "../views/live.vue"
import group from "../views/group.vue"
import audit from "../views/audit.vue"
import indent from "../views/indent.vue"
import consult from "../views/consult.vue"
import agent from "../views/agent.vue"
//封装二级路由
const routes=[
    {
        path:'/main',
        name:"main",
        component:Main,
        meta:{
            //首页及首页的内容全部隐藏
            name:"首页",
            visible:true//隐藏
        }
    },{
        path:"/house",
        name:"house",
        component:House,
        meta:{
           icon: "el-icon-setting",
            name:"房源管理"
        }

    },
    {
        path:"/live",
        name:"live",
        component:live,
        meta:{
           icon: "el-icon-setting",
            name:"直播管理"
        }

    },
    {
        path:"/group",
        name:"group",
        component:group,
        meta:{
           icon: "el-icon-setting",
            name:"团购管理"
        }

    },{
        path:"/audit",
        name:"audit",
        component:audit,
        meta:{
           icon: "el-icon-setting",
            name:"审核管理"
        }

    }
    ,{
        path:"/indent",
        name:"indent",
        component:indent,
        meta:{
           icon: "el-icon-setting",
            name:"订单管理"
        }

    }
    ,{
        path:"/consult",
        name:"consult",
        component:consult,
        meta:{
           icon: "el-icon-setting",
            name:"资讯管理"
        }

    }
    ,{
        path:"/agent",
        name:"agent",
        component:agent,
        meta:{
           icon: "el-icon-setting",
            name:"经纪人管理"
        }

    }
]
export default routes
//导出二级路由